import Vue from 'vue'
import Router from 'vue-router'

Vue.use(Router)

const router = new Router({
  routes: [
    {
      path: '/',
      redirect: '/pages/login/index'
    },
    {
      name: 'redirect',
      path: '/pages/redirect/index',
      component: () => import('@/views/redirect/index')
    },
    {
      name: 'index',
      path: '/pages/index/index',
      component: () => import('@/views/index/index')
    },
    {
      name: 'login',
      path: '/pages/login/index',
      component: () => import('@/views/login/index')
    },
    {
      name: 'homework_index',
      path: '/pages/homework/index/index',
      component: () => import('@/views/homework/index/index'),
      meta: { keepAlive: true }
    },
    {
      name: 'homework_todo_question_xkw',
      path: '/pages/homework/todo/question/xkw/index',
      component: () => import('@/views/homework/todo/question/xkw/index')
    },
    {
      name: 'homework_todo_question_english',
      path: '/pages/homework/todo/question/english/index',
      component: () => import('@/views/homework/todo/question/english/index')
    },
    {
      name: 'homework_todo_task',
      path: '/pages/homework/todo/task/index',
      component: () => import('@/views/homework/todo/task/index')
    },
    {
      name: 'homework_scantron',
      path: '/pages/homework/scantron/index',
      component: () => import('@/views/homework/scantron/index')
    },
    {
      name: 'homework_detail_question_xkw_index',
      path: '/pages/homework/detail/question/xkw/index',
      component: () => import('@/views/homework/detail/question/xkw/index')
    },
    {
      name: 'homework_detail_question_english_index',
      path: '/pages/homework/detail/question/english/index',
      component: () => import('@/views/homework/detail/question/english/index')
    },
    {
      name: 'homework_detail_question_english_choose',
      path: '/pages/homework/detail/question/english/choose/index',
      component: () => import('@/views/homework/detail/question/english/choose/index')
    },
    {
      name: 'homework_detail_question_english_dialogue',
      path: '/pages/homework/detail/question/english/dialogue/index',
      component: () => import('@/views/homework/detail/question/english/dialogue/index')
    },
    {
      name: 'homework_detail_question_english_read',
      path: '/pages/homework/detail/question/english/read/index',
      component: () => import('@/views/homework/detail/question/english/read/index')
    },
    {
      name: 'homework_detail_question_english_fill',
      path: '/pages/homework/detail/question/english/fill/index',
      component: () => import('@/views/homework/detail/question/english/fill/index')
    },
    {
      name: 'homework_detail_question_english_picture',
      path: '/pages/homework/detail/question/english/picture/index',
      component: () => import('@/views/homework/detail/question/english/picture/index')
    },
    {
      name: 'homework_detail_question_english_fill_picture',
      path: '/pages/homework/detail/question/english/fill-picture/index',
      component: () => import('@/views/homework/detail/question/english/fill-picture/index')
    },
    {
      name: 'homework_detail_task',
      path: '/pages/homework/detail/task/index',
      component: () => import('@/views/homework/detail/task/index')
    },
    {
      name: 'homework_explanation',
      path: '/pages/homework/explanation/index',
      component: () => import('@/views/homework/explanation/index')
    },
    {
      name: 'homework_input_index',
      path: '/pages/homework-input/index/index',
      component: () => import('@/views/homework-input/index/index'),
      meta: { keepAlive: true }
    },
    {
      name: 'homework_input_score_index',
      path: '/pages/homework-input/score/index',
      component: () => import('@/views/homework-input/score/index')
    },
    {
      name: 'exam_index',
      path: '/pages/exam/index/index',
      component: () => import('@/views/exam/index/index'),
      meta: { keepAlive: true }
    },
    {
      name: 'wq_book_index',
      path: '/pages/wq-book/index/index',
      component: () => import('@/views/wq-book/index/index'),
      meta: { keepAlive: true }
    },
    {
      name: 'wq_book_search',
      path: '/pages/wq-book/search/index',
      component: () => import('@/views/wq-book/search/index')
    },
    {
      name: 'wq_book_edit',
      path: '/pages/wq-book/edit/index',
      component: () => import('@/views/wq-book/edit/index')
    },
    {
      name: 'wq_book_explanation_upload',
      path: '/pages/wq-book/explanation/upload/index',
      component: () => import('@/views/wq-book/explanation/upload/index')
    },
    {
      name: 'wq_book_explanation_show',
      path: '/pages/wq-book/explanation/show/index',
      component: () => import('@/views/wq-book/explanation/show/index')
    },
    {
      name: 'exercise_index',
      path: '/pages/exercise/index',
      component: () => import('@/views/exercise/index'),
      meta: { keepAlive: true }
    },
    {
      name: 'exercise_practice_xkw_index',
      path: '/pages/exercise/practice/xkw/index',
      component: () => import('@/views/exercise/practice/xkw/index')
    },
    {
      name: 'exercise_practice_english_index',
      path: '/pages/exercise/practice/english/index',
      component: () => import('@/views/exercise/practice/english/index')
    },
    {
      name: 'exercise_record',
      path: '/pages/exercise/record/index',
      component: () => import('@/views/exercise/record/index')
    },
    {
      name: 'exercise_record_detail_xkw_index',
      path: '/pages/exercise/record/detail/xkw/index',
      component: () => import('@/views/exercise/record/detail/xkw/index')
    },
    {
      name: 'exercise_record_detail_english_index',
      path: '/pages/exercise/record/detail/english/index',
      component: () => import('@/views/exercise/record/detail/english/index')
    },
    {
      name: 'exercise_record_detail_english_choose',
      path: '/pages/exercise/record/detail/english/choose/index',
      component: () => import('@/views/exercise/record/detail/english/choose/index')
    },
    {
      name: 'exercise_record_detail_english_dialogue',
      path: '/pages/exercise/record/detail/english/dialogue/index',
      component: () => import('@/views/exercise/record/detail/english/dialogue/index')
    },
    {
      name: 'exercise_record_detail_english_read',
      path: '/pages/exercise/record/detail/english/read/index',
      component: () => import('@/views/exercise/record/detail/english/read/index')
    },
    {
      name: 'exercise_record_detail_english_fill',
      path: '/pages/exercise/record/detail/english/fill/index',
      component: () => import('@/views/exercise/record/detail/english/fill/index')
    },
    {
      name: 'exercise_record_detail_english_picture',
      path: '/pages/exercise/record/detail/english/picture/index',
      component: () => import('@/views/exercise/record/detail/english/picture/index')
    },
    {
      name: 'photoSearchQuestions',
      path: '/pages/photoSearchQuestions/index',
      component: () => import('@/views/photoSearchQuestions/index')
    },
    {
      name: 'learning',
      path: '/pages/learning/index',
      component: () => import('@/views/learning/index')
    },
    {
      name: 'contact_index',
      path: '/pages/contact/index',
      component: () => import('@/views/contact/index')
    },
    {
      name: 'daily_attendance_index',
      path: '/pages/daily-attendance/index',
      component: () => import('@/views/daily-attendance/index/index'),
      meta: { keepAlive: true }
    },
    {
      name: 'daily_attendance_practice_xkw_index',
      path: '/pages/daily-attendance/practice/xkw/index',
      component: () => import('@/views/daily-attendance/practice/xkw/index')
    },
    {
      name: 'dict',
      path: '/pages/dict/index',
      component: () => import('@/views/dict/index.vue'),
      meta: { keepAlive: true }
    },
    {
      name: 'dict_detail',
      path: '/pages/dict/detail',
      component: () => import('@/views/dict/detail.vue')
    },
    {
      name: 'correct_chinese_index',
      path: '/pages/correct/chinese/index',
      component: () => import('@/views/correct/chinese/index/index.vue'),
      meta: { keepAlive: true }
    },
    {
      name: 'correct_chinese_result',
      path: '/pages/correct/chinese/result',
      component: () => import('@/views/correct/chinese/result/index.vue')
    },
    {
      name: 'correct_chinese_record',
      path: '/pages/correct/chinese/record',
      component: () => import('@/views/correct/chinese/record/index.vue'),
      meta: { keepAlive: true }
    },
    {
      name: 'correctEnglish',
      path: '/pages/correct/english/index',
      component: () => import('@/views/correct/english/index.vue'),
      meta: { keepAlive: true }
    },
    {
      name: 'correctEnglishRecord',
      path: '/pages/correct/english/record',
      component: () => import('@/views/correct/english/record.vue')
    },
    {
      name: 'correctEnglishResult',
      path: '/pages/correct/english/result',
      component: () => import('@/views/correct/english/result.vue')
    },
    {
      name: 'ask_for_leave_index',
      path: '/pages/ask-for-leave/index',
      component: () => import('@/views/ask-for-leave/index/index.vue'),
      meta: { keepAlive: true }
    },
    {
      name: 'ask_for_leave_create',
      path: '/pages/ask-for-leave/create',
      component: () => import('@/views/ask-for-leave/create/index.vue')
    },
    {
      name: 'ask_for_leave_ticket',
      path: '/pages/ask-for-leave/ticket',
      component: () => import('@/views/ask-for-leave/ticket/index.vue')
    },
    {
      name: 'class_guidance_index',
      path: '/pages/class-guidance/index',
      component: () => import('@/views/class-guidance/index/index.vue'),
      meta: { keepAlive: true }
    },
    {
      name: 'class_guidance_detail',
      path: '/pages/class-guidance/detail',
      component: () => import('@/views/class-guidance/detail/index.vue')
    }
  ],
  mode: 'hash'
})

export default router
